<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html id="gray_html">
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
        <meta content="telephone=no" name="format-detection">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>e美家</title>
        <link rel="stylesheet" type="text/css" href="/meirong/Public/Wechat/api/css/work.css"/>
	</head>
<body>
	<header id="header">
		<span id="goback_icon" onclick="history.back(-1)"></span>
		<span>我的收成</span>
	</header>
	<div id="work_time">
		<?php if($count < 2 ): ?><!--完成数量少于要求数量的一半  -->
			<img src="/meirong/Public/Wechat/api/images/work/work_time1.png" /><?php endif; ?>
		<?php if(($count > 2) AND ($count < 4)): ?><!--完成数量多于要求数量的一半  -->
			<img src="/meirong/Public/Wechat/api/images/work/work_time2.png" /><?php endif; ?>
		<?php if($count >= 4): ?><!--完成数量大于等于要求数量  -->
			<img src="/meirong/Public/Wechat/api/images/work/work_time3.png" /><?php endif; ?>
		<div id="time_show">
			<span class="wt_icon"></span>
			<span>(<?php echo ($count); ?><span>/4</span>)</span>
		</div>
	</div>
	<div class="container">
		<div id="income_data">
			<p class="this_month"><span class="month_icon"></span><span class="month_income"><?php echo ($nowmonthincome); ?></span><span class="rice_icon"></span></p>
			<p class="total_income"><span class="total_label">累计收成：</span><span class="total_rice"><?php echo ($allincome); ?></span><span class="rice_icon"></span></p>
		</div>
		<?php if(is_array($orderres)): foreach($orderres as $key=>$vo): ?><ul id="income_list">
			<li>
				<div class="il_left">
					<p><?php echo (date("y-m-d",$vo["createtime"])); ?></p>
					<p><?php echo ($vo["oproject_name"]); ?></p>
				</div>
				<div class="il_right">
					<span><?php echo ($vo["paymoney"]); ?></span>
					<span class="rice_icon"></span>
				</div>
				<div class="clear"></div>
			</li>
		</ul><?php endforeach; endif; ?>
	</div>
</body>
</html>